package com.springboot.repository;

import com.springboot.model.user;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

public interface userRepository extends JpaRepository<user, Long> {
    List<user> findByUsernameAndAge(String username,Integer age);
    public List<user> findByAge(Integer age);
}